//
//  MZYsurTableViewCell.m
//  WristWatch
//
//  Created by dllo on 15/10/29.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MZYsurTableViewCell.h"

@implementation MZYsurTableViewCell

- (void)dealloc {
    [_surLabel release];
    [_surImageView release];
    
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.surLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.surLabel];
    [self.surLabel release];
    
    self.surImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.surImageView];
    [self.surImageView release];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.surLabel.frame = CGRectMake(self.contentView.frame.size.width / 4 - 3.75, 0, self.contentView.frame.size.width, 80);
    self.surImageView.frame = CGRectMake(10, 10, self.contentView.frame.size.width / 6, self.contentView.frame.size.height / 4 * 3);

}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
